package com.gxa.park.core.pojo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author mincheung
 * @since 2022-07-18
 */
@TableName("tb_street_rates")
@ApiModel(value = "StreetRates对象", description = "")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StreetRates implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自增长主键id")
      @TableId(value = "ra_id", type = IdType.AUTO)
    private Integer raId;

    @ApiModelProperty("繁忙开始时间")
    @TableField("ra_busy_start_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime raBusyStartTime;

    @ApiModelProperty("繁忙结束时间")
    @TableField("ra_busy_end_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime raBusyEndTime;

    @ApiModelProperty("免费时间分钟")
    @TableField("ra_busy_free_time")
    private Integer raBusyFreeTime;

    @ApiModelProperty("收费标准")
    @TableField("ra_busy_rates")
    private Double raBusyRates;

    @ApiModelProperty("封顶金额")
    @TableField("ra_busy_top_moeny")
    private Double raBusyTopMoeny;

    @ApiModelProperty("非繁忙开始时间")
    @TableField("ra_unbusy_start_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime raUnbusyStartTime;

    @ApiModelProperty("非繁忙结束时间")
    @TableField("ra_unbusy_end_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime raUnbusyEndTime;

    @ApiModelProperty("非繁忙免费时间分钟")
    @TableField("ra_unbusy_free_time")
    private Integer raUnbusyFreeTime;

    @ApiModelProperty("非繁忙收费标准")
    @TableField("ra_unbusy_rates")
    private Double raUnbusyRates;

    @ApiModelProperty("非繁忙封顶金额")
    @TableField("ra_unbusy_top_moeny")
    private Double raUnbusyTopMoeny;

    @ApiModelProperty("泊位数量")
    @TableField("ra_park_number")
    private Integer raParkNumber;

    @ApiModelProperty("限制泊位数量")
    @TableField("ra_top_park_number")
    private Integer raTopParkNumber;
}
